`ifndef INSURER_SVH
`define INSURER_SVH

class insurer;
	insurable_ifc insurable;

	function new(insurable_ifc insurable);
		this.insurable = insurable;
	endfunction

	virtual function int unsigned insure(); // 计算保险费用
		int engine_size = insurable.get_engine_size();
		int num_accidents = insurable.get_num_accidents();
		$display("The insurance is %0d", engine_size*10+num_accidents*100);
	endfunction
endclass

`endif
